package com.nbsaas.boot.product.rest.convert;

import com.nbsaas.boot.product.data.entity.ProductCategory;
import com.nbsaas.boot.product.api.domain.response.ProductCategoryResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 商品分类-实体对象转化成响应对象
*/

public class ProductCategoryResponseConvert  implements Converter<ProductCategoryResponse,ProductCategory> {

    @Override
    public ProductCategoryResponse convert(ProductCategory source) {
        ProductCategoryResponse  result = new  ProductCategoryResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

